<?php

declare (strict_types = 1);

namespace hashing;

use hashing\contract\Hasher;
use think\Service;

class HashService extends Service
{
    /**
     * 注册哈希服务
     */
    public function register(): void
    {
        $this->app->bind('hash', function () {
            return new HashManager($this->app);
        });

        $this->app->bind(Hasher::class, 'hash');
    }

    public function boot(): void
    {
        // 服务启动
    }
}
